﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace Fluq
{
	sealed class DependencyParameter : IDependencyParameter
	{
		Func<IDependencyContainer, object> _factory;
		Func<ParameterInfo, bool> _match;

		public DependencyParameter(Func<IDependencyContainer, object> factory, Func<ParameterInfo, bool> match)
		{
			_factory = factory;
			_match = match;
		}

		public Func<IDependencyContainer, object> Factory { get { return _factory; } }

		public Func<ParameterInfo, bool> Match { get { return _match; } }
	}
}
